#include<stdio.h>
int negotiate(int y)
{
	if(((y%4==0)&&(y%100!=0)) || (y%400==0))
		printf("%d是闰年",y);
	else
		printf("%d不是闰年",y);
	return 1;
}

int main()
{
	int year=0;
	while(scanf("%d",&year)!=0)
	{
	negotiate(year);
	}
	return 0;
}
